package com.sinosoft.cnmuseum.utils;
import com.sinosoft.cnmuseum.dao.MbManageResourceprivilegeDao;
import com.sinosoft.cnmuseum.dao.MbManageResourceresponsiblepersonDao;
import com.sinosoft.commontools.record.Record;

public class ResourceUploadUtils {

		
	
	/**	
	 * 插入资源责任人表数据
	 * @param mbManageResourceResponsiblePerson
	 */
	public  void insertMbManageResourceResponsiblePerson(Record mbManageResourceResponsiblePerson) {
		try {
			MbManageResourceresponsiblepersonDao dao=new MbManageResourceresponsiblepersonDao();						
			dao.insert(mbManageResourceResponsiblePerson);
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}
	
	/**	
	 * 更新资源责任人表数据
	 * @param mbManageResourceResponsiblePerson
	 */
	public  void updateMbManageResourceResponsiblePerson(Record mbManageResourceResponsiblePerson) {
		try {
			MbManageResourceresponsiblepersonDao dao=new MbManageResourceresponsiblepersonDao();						
			dao.update(mbManageResourceResponsiblePerson);
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}
	
	
	/**
	 * 插入资源权限表
	 * @param mbManageResourcePrivilege
	 */
	public  void insertMbManageResourcePrivilege(Record mbManageResourcePrivilege) {
		try {
			MbManageResourceprivilegeDao dao=new MbManageResourceprivilegeDao();			
			dao.insert(mbManageResourcePrivilege);
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}
	/**
	 * 更新资源权限表
	 * @param mbManageResourcePrivilege
	 */
	public  void updateMbManageResourcePrivilege(Record mbManageResourcePrivilege) {
		try {
			MbManageResourceprivilegeDao dao=new MbManageResourceprivilegeDao();			
			dao.update(mbManageResourcePrivilege);
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}
	
}
